export default {
  state: {
    orientation: 'portrait',
    loadingExportPDF: false,
    tableData: {},
  },
  mutations: {
    SET_ORIENTATION: (state,data) => {
      state.orientation = data
    },
    SET_LOADING_EXPORT_PDF: (state,data) => {
      state.loadingExportPDF = data
    },
    SET_TABLE_DATA: (state,data) => {
      state.tableData = {...state.tableData,...data}
    }
  },
  actions: {
    setOrientation({ commit },value) {
      commit('SET_ORIENTATION',value)
    },
    setLoadingExportPDF({ commit },value) {
      commit('SET_LOADING_EXPORT_PDF',value)
    },
    setTableData({ commit },value) {
      commit('SET_TABLE_DATA',value)
    }
  }
}
